﻿using System.Collections.ObjectModel;
using GalaSoft.MvvmLight.Command;
using MSSQL.DBSync.UI.Common.AsyncCmds;

namespace MSSQL.DBSync.UI.Components.MakeSnapshot
{
    /// <summary>
    /// 快照生成视图视模型
    /// </summary>
    public interface IMakeSnapshotVM 
    {
        /// <summary>
        /// 初始化设置首页内容
        /// </summary>
        AsyncCommand CheckConn { get; set; }

        string Connstr { get; set; }

        /// <summary>
        /// 0 未连通
        /// 1 已连通
        /// 2 连接错误
        /// </summary>
        int DBConnCheckState { get; set; }


        /// <summary>
        /// 导出保存路径
        /// </summary>
        string Folder { get; set; }

        /// <summary>
        /// 打开目录
        /// </summary>
        RelayCommand OpenDir { get; set; }

        ObservableCollection<DBObjectBriefVO> DBObjectBriefs { get; set; }

        /// <summary>
        /// 当前数据库类型对象
        /// </summary>
        DBObjectBriefVO CurDBObje { get; set; }

        /// <summary>
        /// 主机
        /// </summary>
        string Host { get; set; }

        /// <summary>
        /// 用户
        /// </summary>
        string User { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        string Pwd { get; set; }

        /// <summary>
        /// 数据库
        /// </summary>
        string DataBase { get; set; }
    }
}